part of 'bloc.dart';

abstract class TransactionHistoryFragmentBlocState {}

class InitialTransactionHistoryFragmentBlocState implements TransactionHistoryFragmentBlocState {
  const InitialTransactionHistoryFragmentBlocState();
}

class LoadingTransactionHistoryFragmentBlocState implements TransactionHistoryFragmentBlocState {
  const LoadingTransactionHistoryFragmentBlocState();
}

class LoadedTransactionHistoryFragmentBlocState implements TransactionHistoryFragmentBlocState {
  const LoadedTransactionHistoryFragmentBlocState({
    required this.webTransactionHistoryItemModels,
  });

  final BuiltList<WebTransactionHistoryItemModel> webTransactionHistoryItemModels;

  LoadedTransactionHistoryFragmentBlocState copyWith({
    BuiltList<WebTransactionHistoryItemModel> Function()? webTransactionHistoryItemModels,
  }) {
    return LoadedTransactionHistoryFragmentBlocState(
      webTransactionHistoryItemModels: webTransactionHistoryItemModels == null
          ? this.webTransactionHistoryItemModels
          : webTransactionHistoryItemModels(),
    );
  }
}
